package com.ruoyi.system.controller;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.TBOrderDevice;
import com.ruoyi.system.service.ITBOrderDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/index")
public class IndexController {

    @Autowired
    private ITBOrderDeviceService tBOrderDeviceService;

    /**
     * 查询订单关联设备列表
     */
    @PreAuthorize("@ss.hasPermi('system:orderDevice:list')")
    @GetMapping("/devs")
    public List<TBOrderDevice> devs(TBOrderDevice tBOrderDevice){
        List<TBOrderDevice> list = tBOrderDeviceService.selectTBOrderDeviceList(tBOrderDevice);
        return list;
    }
}
